package com.itheima.web.controller;

import com.itheima.web.manager.MovementManager;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class MovementController {
        @Autowired
    MovementManager movementManager;
    //动态审核通过
    @PostMapping("/manage/messages/pass")
    public ResponseEntity movementPass(@RequestBody String[] movementIds){
        return movementManager.movementPass(movementIds);
    }
    //动态审核拒绝
    @PostMapping("/manage/messages/reject")
    public ResponseEntity movementReject( @RequestBody String[] movementIds){
        return movementManager.movementReject(movementIds);
    }
}
